import type { RouteRecordRaw } from 'vue-router'

function Layout() {
  return import('@/layouts/index.vue')
}

const routes: RouteRecordRaw = {
  path: '/hexiaoUser',
  component: Layout,
  redirect: '/hexiaoUser/userList',
  name: 'hexiaoUser',
  meta: {
    title: '核销店员',
    icon: 'material-symbols-light:record-voice-over-outline',
  },
  children: [
    {
      path: 'userList',
      name: 'userList',
      component: () => import('@/views/hexiao/userList.vue'),
      meta: {
        title: '核销用户列表',
        auth: ['permission.browse'],
        menu: false,
        activeMenu: '/hexiaoUser',
      },
    },
    {
      path: 'detail',
      name: 'hexiaoUserDetail',
      component: () => import('@/views/hexiao/detail.vue'),
      meta: {
        title: '核销用户配置',
        auth: ['permission.browse'],
        menu: false,
        activeMenu: '/hexiaoUser',
      },
    },
  ],
}

export default routes
